package IOTest;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Scanner;

public class ScannerInput {
    public static void main(String[] args) {
        try(InputStream inputStream = new FileInputStream("D:/example/test.txt");Scanner scanner = new Scanner(inputStream)) {
            System.out.println(scanner.next());
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
